﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.IM.Request
{
    /// <summary>
    /// 获取添加聊天记录信息
    /// yun.im.rongcloud.history.message.add
    /// </summary>
    public class AddHistoryMessageRequest : ITopRequest<IntResultResponse>
    {
        /// <summary>
        ///  检索日期 指定北京时间某天某小时，格式为2014010101。多个日期用英文逗号隔开。
        /// </summary>
        public string Dates { get; set; }

        public void Validate()
        {
            RequestValidator.ValidateRequired("dates", Dates);
        } 

        public string GetApiName()
        {
            return "yun.im.rongcloud.history.message.add";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"dates", Dates} 
            };
            return parameters;
        }


    }
}
